package com.lmq.factory.simple;

public class consumer {
    public static void main(String[] args) {
//        Car car1 = new Wuling();
//        Car car2 = new Tesla();
        Car car1 = CarFactory.getCar("五菱");
        Car car2 = CarFactory.getCar("特斯拉");


        car1.name();
        car2.name();


    }
}
